import { _decorator, Component, Label, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Bullet')
export class Bullet extends Component {

    @property({
        tooltip: '弹幕内容',
        displayName: '弹幕内容',
        type: Label,
    })
    label: Label

    get container() {
        return this.getComponent(Label)
    }

    set text(text: string) {
        this.container.string = this.label.string = text;
    }

    start() {

    }
}


